package model;

import java.util.ArrayList;
import java.util.List;

public class Service {
	int id;
	int spreadMin;
	List<Integer> dependsOn;
	List<Integer> processes;

	public Service() {
		dependsOn = new ArrayList<Integer>();
		processes = new ArrayList<Integer>();
	}

	public void setId(int s) {
		this.id = s;
	}

	public void setSpreadMin(int sp) {
		spreadMin = sp;
	}

	public String toString() {
		return String.format("ID=%d, SPREADMIN=%d DEPENDSON=%d %s", id,
				spreadMin, dependsOn.size(), dependsOn);
	}

	public void addDependsOn(int s) {
		dependsOn.add(s);
	}
}
